#============================================
# #知识点
# 进程之间地数据相互分离地
# join是让主进程等待子进程代码运行结束之后，再继续运行。不影响其他子进程的执行
from multiprocessing import Process
import time 
def qwq(x):
    print(f"{x}is running!")
    time.sleep(1)
    print(f"{x}is over!")

if __name__ == "__main__":
    obj = Process(target = qwq,args =("小黑",))
    obj1 = Process(target = qwq,args =("白",))
    obj.start()
    obj1.start()
    obj.join()
    # obj1.join()
    print("11")
    print("主")
#============================================